#!/bin/bash

ps aux |grep --color=always $1 |grep -v 'grep '


num=$(ps aux |grep $1 |grep -v 'grep ' |wc -l)
echo 
echo "result total: $num"
